package zx.x.modules.yshbms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import zx.x.common.utils.PageUtils;
import zx.x.common.utils.Query;
import zx.x.modules.yshapp.entity.CommunityBulletinEntity;
import zx.x.modules.yshapp.entity.InvitationCodeEntity;
import zx.x.modules.yshbms.dao.InvitationCodeDao;
import zx.x.modules.yshbms.service.InvitationCodeService;

import java.util.Map;


@Service("invitationCodeService")
public class InvitationCodeServiceImpl extends ServiceImpl<InvitationCodeDao, InvitationCodeEntity> implements InvitationCodeService {
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InvitationCodeEntity> page = this.page(
                new Query<InvitationCodeEntity>().getPage(params),
                new QueryWrapper<InvitationCodeEntity>()
        );

        return new PageUtils(page);
    }
}